package DIeasy;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo {

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("DI.xml");
		ConstructDIBean construct = context.getBean(ConstructDIBean.class);
		construct.hello();
		PropertyDIBean property = context.getBean(PropertyDIBean.class);
		property.hello();

	}

}
